Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Frameset woes in R6 (Really need some help here)
~Lex Prelutexflar 18.Dec.03 09:47 AM a Web browser
Applications Development All Releases Windows 2000


Hi K (?),

To auto-load a document in the details frame when a view or folder in the main frame is first opened you need some code in the postopen event (for the view/folder in main) like this:

Sub PostOpen (source As NotesUIView)
Dim ws As New NotesUIWorkspace
Dim uidb As NotesUIDatabase
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim nid As String
Set uidb = ws.CurrentDatabase
Set db = uidb.Database
nid = source.CaretNoteID
Call ws.SetTargetFrame("detailsFrame")
If nid = "0" Then
Call ws.OpenPage("NoSelect")
Else
Set doc = db.GetDocumentByID(nid)
Call ws.EditDocument(False, doc)
End If
End Sub

As this code tracks the CaretNoteID rather than the first or selected document in the view, it should also ensure the details frame shows the correct document when the user switches to a different name. The code assumes you have a page called "NoSelect" that displays when the view has no documents at all.

Hope this helps you.

Regards, Ian




Frameset woes in R6 (Really need so... (~Tony Ekwekonyj... 17.Dec.03)
. . RE: Frameset woes in R6 (Really nee... (~Keiko Cisfoote... 18.Dec.03)
. . . . RE: Frameset woes in R6 (Really nee... (~Justin Minlute... 18.Dec.03)
. . RE: Frameset woes in R6 (Really nee... (~Lex Prelutexfl... 18.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS